import { mnetService } from "../../mnet/mnetService"
import { createNatsForwarder, natsForwarderData } from "../../mnet/natsForwarder"


type gatewayServiceData = {
    nats:natsForwarderData 
}

export class gatewayService extends mnetService {
    async start():Promise<void> {
        this.data.nats = await createNatsForwarder(this.ownerObj)
    }

    get data():gatewayServiceData {
        return this.getData<gatewayServiceData>()
    }
}

export const gatewayServiceName = "ng"

 